package structure;

import utilities.rle2dUtilities;

public class Circle extends Area implements AreaInf {
	private double r;
	
	public  Circle(int r,int x,int y,int color) {
		this.setR(r);
		super.setX(x);
		super.setY(y);
		super.setColor(color);
		this.evalPriority();
		this.setKind(rle2dUtilities.CIRCLE);
	}
	
	public Circle (int r, int x, int y, int color, int priority) {
		this.setR(r);
		super.setX(x);
		super.setY(y);
		super.setColor(color);
		this.setPriority(priority);
		this.setKind(rle2dUtilities.CIRCLE);
	}

	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}

	@Override
	public void evalPriority() {
		setPriority(rle2dUtilities.PI*r*r);
	}

	@Override
	public byte[] getBinary() {
		// TODO Auto-generated method stub
		return null;
	}

}
